package com.atguigu.adapter.classadapter;

public class Phone {

	//充电
	public void charging(IVoltage5V voltage5v) {
		if (voltage5v.output5V() == 5) {
			System.out.println("电压为5V，可以充电~");
		} else if (voltage5v.output5V() > 5) {
			System.out.println("电压大于5V，不能充电~");
		}
	}
}
